# # 层级和属性结合
# 先定位到其父级元素，然后再找到该元素
# 写法： //标签名[@属性名="属性值"]/标签名[@属性名="属性值"]

# 导包
import time

from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.get("http://121.43.169.97:8848/pageA.html")
driver.find_element(by=By.XPATH, value="//p[@id='pa']/input[@id='userA']").send_keys("admin")
time.sleep(2)
driver.quit()
